<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<link href="${ctx}/css/login.css" rel="stylesheet" type="text/css" />
<script>
if (window != top){
	top.location.href = location.href; 
}
</script>
<%@include file="/WEB-INF/common/topEnd.jsp"%>	
<%@include file="/WEB-INF/common/bodyBegin.jsp"%>
<script>
<c:if test="${!empty sessionScope.currentUser }">
Ext.Msg.alert('提示','您已经登录了此系统，请退出系统后登录其他账户！',function(){
	  window.location  ="main.action";
});
</c:if>
</script>
<div class="wrapper">
  <div class="login">
    <div class="loginContent">  
     	 <form id="login_form" method="post" action="">
        <ul class="form_list">
          <li>
            <label>用户名</label>
            <span>
            <input type="text" id="loginName" class="input-box" name="loginName"  />
            </span> </li>
          <li>
            <label>密码</label>
            <span>
            <input type="password" id="password" name="password" class="input-box" >
            </span> </li>
          <li >
            <label>验证码</label>
            <span class="validityCode">
           		<input type="text" id="chkcode" class="input-box" name="j_chkcode" value="" onKeyDown="doSubmit(event);"  maxlength="4" />
            </span> 
            <a class="href_link" href="javascript:document.getElementById('checkImg').setAttribute('src','${ctx}/servlet/RandomCodeServlet?'+Math.random());" title="点击换一张" >
                   <img id="checkImg" src="${ctx}/servlet/RandomCodeServlet?<%=new java.util.Date()%>" border="0" width="85" height="35" />
             </a>          
             </li>
          <li>
            <input type="button" class="zhuce_bt" id="loginButton" value="登&nbsp;&nbsp;录" name="btnok" />
          </li>
        </ul>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript" src="${ctx}/js/app-web/login/login.js"></script>
<%@include file="/WEB-INF/common/bodyEnd.jsp"%>	

